package cn.soulfire.advertisement.domain;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ma.rui.kai
 * @since 2020-10-13
 */
@TableName("administration_advertisement")
public class Advertisement extends Model<Advertisement> {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String title;
    private String frequency;
    private Date starttime;
    private Date Endtime;
    // 1投放中    2暂停中   0投放结束
    private Integer state;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getFrequency() {
        return frequency;
    }

    public void setFrequency(String frequency) {
        this.frequency = frequency;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return Endtime;
    }

    public void setEndtime(Date Endtime) {
        this.Endtime = Endtime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Advertisement{" +
        ", id=" + id +
        ", title=" + title +
        ", frequency=" + frequency +
        ", starttime=" + starttime +
        ", Endtime=" + Endtime +
        ", state=" + state +
        "}";
    }
}
